package com.zpkj.portal.third.jpush;

import java.util.Map;

import com.google.gson.Gson;

/**
 * 极光推送透传的操作类
 * @author xc
 */
public class MeesageContent {
	
	//透传码--透传种类:1登出  2系统版本更新  3系统常量更新 4站点认证状态更新 5个人信息认证更新 6有新的消息(小红点) 7关注的赛事进球提醒
	private String code;
	//标题
	private String title;
	//透传的消息
	private String codeInfo;
	//附加属性:
	private Map<String,Object> extra;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCodeInfo() {
		return codeInfo;
	}
	public void setCodeInfo(String codeInfo) {
		this.codeInfo = codeInfo;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String toJson(){
		Gson gson = new Gson();
		return gson.toJson(this);
	}
	public Map<String, Object> getExtra() {
		return extra;
	}
	public void setExtra(Map<String, Object> extra) {
		this.extra = extra;
	}
	
	
}
